package com.hzqx.syndata.hzqx.jdjw;

import com.hzqx.syndata.hzqx.utils.ChargeFtpFileIfExistsUtil;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;
import java.util.List;

/**
 * @author yinzhiping
 */
public class JdjwPic {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime just = now.plusHours(-1);
        Date nowDate = Date.from( now.atZone( ZoneId.systemDefault()).toInstant());
        Date jst = Date.from( just.atZone( ZoneId.systemDefault()).toInstant());
        List<String> list = ChargeFtpFileIfExistsUtil.getFile("218.108.73.59", 5987, "jdqxj","Jdqx@4321", "/", jst,nowDate);
        System.out.println(list);
    }
}
